package com.example.worldgdpjar.model;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@Getter
@Setter
public class CountryLanguage implements Serializable {

  private Country country;

  @NotNull private String countryCode;

  @NotNull
  @Size(max = 30)
  private String language;

  @NotNull private Official isOfficial;

  @NotNull private Double percentage;
}
